﻿using Common.Infrastructure;
using System;

namespace Base.Data.Entity
{
    public class t_user : EntityBase
    {
        [EntityFieldLength(30)]
        [EntityFieldIndex(true)]
        public string code { get; set; }

        [EntityFieldLength(60)]
        public string name { get; set; }
        public int enable_status { get; set; }
        public string remark { get; set; }
        /// <summary>
        /// 用户LCP编号
        /// </summary>
        [EntityFieldLength(60)]
        public string user_lcp_code { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public string depart_id { get; set; }
        [EntityFieldLength(20)]
        public string phone { get; set; }

        public string user_post_id { get; set; }

        /// <summary>
        /// 0-默认
        /// 1-男
        /// 2-女
        /// </summary>
        public int sex { get; set; }

        /// <summary>
        /// 标准职位编码
        /// </summary>
        [EntityFieldLength(100)]
        public string position_code { get; set; }

        /// <summary>
        /// 职位序列代码
        /// </summary>
        [EntityFieldLength(100)]
        public string sequ_code { get; set; }

        /// <summary>
        /// 职位序列名称
        /// </summary>
        [EntityFieldLength(200)]
        public string sequ_name { get; set; }
        /// <summary>
        /// 职位子序列代码
        /// </summary>
        [EntityFieldLength(100)]
        public string subsq_code { get; set; }
        /// <summary>
        /// 职位子序列名称
        /// </summary>
        [EntityFieldLength(200)]
        public string subsq_name { get; set; }
        /// <summary>
        /// 职位类别
        /// </summary>
        [EntityFieldLength(200)]
        public string job_class { get; set; }
        /// <summary>
        /// 工作属地 1-厦门、2-长泰、3-四川、4-深圳、5-台湾-台北、6-美国、7-德国、8-日本、9-澳大利亚、10-中东、11-外区域、12-西安、13-苏州、21-泰国、22-台湾-新竹、23-上海、24-南非、25-埃及
        /// </summary>
        public int work_territory { get; set; }

        [EntityFieldLength(2000)]
        public string att_files { get; set; }

        /// <summary>
        /// API的键值
        /// </summary>
        [EntityFieldLength(80)]
        public string api_key { get; set; }

        /// <summary>
        /// 合宜--章号（不同步BR系统，手动维护）
        /// </summary>
        [EntityFieldLength(80)]
        public string chapter_code { get; set; }

        /// <summary>
        /// 入职日期
        /// </summary>
        public DateTime entry_date { get; set; }

        /// <summary>
        /// IQC区域ID
        /// </summary>
        public string area_id { get; set; }

        public string iqc_area_id { get; set; }

        public int iqc_power_level { get; set; }

        /// <summary>
        /// 用户类型：
        /// 0-默认
        /// 1-线长
        /// 2-助线
        /// 3-维修员
        /// 4-ME
        /// 5-PE
        /// 6-品检员
        /// </summary>
        public int user_type { get; set; }

        /// <summary>
        /// 上级lcp编号（不同步BR系统，手动维护）
        /// </summary>
        [EntityFieldLength(20)]
        public string superior_lcp_code { get; set; }

        public string responsible_id { get; set; }

        /// <summary>
        /// 直间接分类
        /// 1-直接、2-间接、3-间接辅助（线长、助线），体现主岗职位的标准职位的直间接分类
        /// </summary>
        public int dir_indir_class { get; set; }
    }
}
